const path = require('path');

// path.resolve()==> 产生一个绝对路径

let  distPath = path.resolve(__dirname,'dist/js');

console.log(__dirname + '/dist/js');
console.log(__dirname + '../dist/js');
console.log(distPath);//C:\Users\yu\Desktop\BJ0425\代码\day07\webpack_learn\dist\js

console.log(path.resolve(__dirname,'/dist/js'));

console.log(path.resolve(__dirname, '../../dist/js'));

